package cn.ztydata.teachingsystem.heaven.web.dto.speakComment;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by lyj on 2015/3/21.
 */
public class CommentDto {
    private Long id; //ID

    @NotNull(message = "回复内容不能为空")
    private String content; //回复内容

    private Long userId; //回复人ID
    private Integer roleId; //回复人角色（0老师  1学生）
    private String userName; //回复人姓名
    private String userPhoto; //回复人头像
    private String time; //回复时间

    @NotNull(message = "发言ID不能为空")
    @Min(value = 1, message = "发言ID应该大于零")
    private Long talkId; //发言编号


    @NotNull(message = "被回复ID不能为空")
    @Min(value = 0, message = "被回复ID应该大于零")
    private Long replyId; //被回复编号

    private String replyName; //被回复人姓名

    @Range(min = 1, max = 3, message = "群组类型")
    private Integer groupType; //群组类型

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public Long getTalkId() {
        return talkId;
    }

    public void setTalkId(Long talkId) {
        this.talkId = talkId;
    }

    public Long getReplyId() {
        return replyId;
    }

    public void setReplyId(Long replyId) {
        this.replyId = replyId;
    }

    public String getReplyName() {
        return replyName;
    }

    public void setReplyName(String replyName) {
        this.replyName = replyName;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }
}
